# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-flashback
pkgver=3.44.0
pkgrel=0
pkgdesc="GNOME Flashback is a GNOME session providing a similiar experience to GNOME 2.x"
url="https://wiki.gnome.org/Projects/GnomeFlashback"
# s390x and riscv64 blocked by polkit
arch="all !s390x !riscv64"
license="GPL-2.0-or-later"
depends="gsettings-desktop-schemas xkeyboard-config"
makedepends="gtk+3.0-dev gnome-desktop-dev gnome-panel-dev libcanberra-dev
	glib-dev gsettings-desktop-schemas-dev polkit-dev ibus-dev upower-dev
	libxrandr-dev libxxf86vm-dev libx11-dev libxcb-dev elogind-dev libxext-dev
	libxkbfile-dev gdm-dev libxfixes-dev pulseaudio-dev alsa-lib-dev gnome-bluetooth-3-dev
	linux-pam-dev xkeyboard-config-dev"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-flashback/${pkgver%.*}/gnome-flashback-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
7a39baa5e37cd01dc6d3b5fff3ef4c99240106f9e13c68c2ce1db19c3f9a672d4c22602e3ca3c4cff28226c3bd26525500bf002fb598c1af362ce15d7a92b55e  gnome-flashback-3.44.0.tar.xz
"
